<?php


namespace App\api;


class Api
{
    public $req;
    public function return_data($data) {
        $buf = $this->req->getOutputBuffer();
        $buf->add(json_encode($data));
        $this->req->sendReply(200, "OK");
    }
}